package com.hisense.ovcloud.warehouse.tool;


public class ValidateUtils {
    public final static String DOMAIN_RGX = "^[-_a-z0-9]+$";
    public final static String SERVICE_RGX = "^[-a-zA-Z0-9]+$";

    public static boolean domainValidate(String domain){
        return domain.matches(DOMAIN_RGX);
    }

    public static boolean serviceNameValidate(String serviceName){
        return serviceName.matches(SERVICE_RGX);
    }
}
